{include file="common/common"}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li class="active">配置项管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">

<button type="button"  class="btn btn-sm btn-azure btn-addon"> <i class="fa fa-plus"></i> 网站配置项
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <form action="" method="post">
                        <table class="table table-bordered table-hover">
                            <thead class="">
                            <tr>
                                <th class="text-center" width="10%">配置名称</th>
                                <th class="text-center">配置值</th>
                            </tr>
                            </thead>
                            <tbody>
                      <?php foreach ($confres as $v):?>
                            <tr>
                                <td align="center" style="display:table-cell;vertical-align:middle">{$v.cnname}</td>
                                <td align="center" style="display:table-cell;vertical-align:middle">
                                    <?php if($v['type']==1):?>
                                        <input type="text" value="{$v.value}"  name="{$v.enname}" style="width: 80%" class="form-control">
                                    <?php elseif($v['type']==2):?>
                                        <textarea name="{$v.enname}" id="" cols="100" rows="3" style="text-align: left">{$v.value}</textarea>
                                    <?php elseif($v['type']==3):
                                         if($v['Manyvalue']){
                                            $arr = explode(',',$v['Manyvalue']);
                                         }
                                         foreach($arr as $k1=>$v1):
                                     ?>
                                    <label style="margin-right: 15px">
                                        <input type="radio" name="{$v.enname}" value="{$v1}" <?php if($v1==$v['value']){echo "checked";} ?> />
                                        <span class="text">{$v1}</span>
                                    </label>
                                    <?php endforeach;?>
                                    <?php elseif($v['type']==4):?>
                                        <label>
                                            <input type="checkbox"  <?php if($v['value']==$v['Manyvalue']){echo "checked";}?> class="colored-success" value="{$v.Manyvalue}" name="{$v.enname}">
                                            <span class="text">{$v.Manyvalue}</span>
                                        </label>
                                    <?php elseif($v['type']==5):
                                        if($v['Manyvalue']){
                                            $arrselect = explode(',',$v['Manyvalue']);
                                        }
                                    ?>
                                    <select name="{$v.enname}">
                                        <?php foreach ($arrselect as $k2=>$v2):?>
                                            <option value="{$v2}" <?php if($v2==$v['value']){echo "selected";} ?>>{$v2}</option>
                                        <?php endforeach;?>
                                    </select>
                                    <?php endif ;?>
                                </td>
                            </tr>
                     <?php endforeach;?>
                            <tr>

                                <td align="center"><input type="submit" class="btn btn-primary btn-sm shiny" value="修改配置" ></td>
                            </tr>
                            </tbody>
                        </table>
                    </form>


                </div>
                <div style="margin-top: 20px;text-align: center">
                </div>

                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__static__/style/jquery_002.js"></script>
    <script src="__static__/style/bootstrap.js"></script>
    <script src="__static__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__static__/style/beyond.js"></script>
    


</body></html>